package com.ruoyi.fun.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存记录对象 ec_stock_log
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public class EcStockLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** SKU ID */
    @Excel(name = "SKU ID")
    private Long skuId;

    /** 操作类型 */
    @Excel(name = "操作类型", readConverterExp = "1=入库,2=出库,3=调整", combo = "入库,出库,调整")
    private String operationType;

    /** 操作数量 */
    @Excel(name = "操作数量", prompt = "入库：正数增加库存；出库：负数减少库存；调整：直接设置为目标库存数量")
    private Long operationQuantity;

    /** 操作前库存 */
    @Excel(name = "操作前库存")
    private Long beforeStock;

    /** 操作后库存 */
    @Excel(name = "操作后库存")
    private Long afterStock;

    /** 关联订单号 */
    @Excel(name = "关联订单号")
    private String orderNo;

    /** 操作原因 */
    @Excel(name = "操作原因")
    private String operationReason;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** SKU名称 */
    @Excel(name = "SKU名称")
    private String skuName;

    
    /** 组织ID */
    @Excel(name = "组织ID")
    private Long orgId;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }

    public void setOperationType(String operationType) 
    {
        this.operationType = operationType;
    }

    public String getOperationType() 
    {
        return operationType;
    }

    public void setOperationQuantity(Long operationQuantity) 
    {
        this.operationQuantity = operationQuantity;
    }

    public Long getOperationQuantity() 
    {
        return operationQuantity;
    }

    public void setBeforeStock(Long beforeStock) 
    {
        this.beforeStock = beforeStock;
    }

    public Long getBeforeStock() 
    {
        return beforeStock;
    }

    public void setAfterStock(Long afterStock) 
    {
        this.afterStock = afterStock;
    }

    public Long getAfterStock() 
    {
        return afterStock;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setOperationReason(String operationReason) 
    {
        this.operationReason = operationReason;
    }

    public String getOperationReason() 
    {
        return operationReason;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setSkuName(String skuName) 
    {
        this.skuName = skuName;
    }

    public String getSkuName() 
    {
        return skuName;
    }

    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("productId", getProductId())
            .append("skuId", getSkuId())
            .append("operationType", getOperationType())
            .append("operationQuantity", getOperationQuantity())
            .append("beforeStock", getBeforeStock())
            .append("afterStock", getAfterStock())
            .append("orderNo", getOrderNo())
            .append("operationReason", getOperationReason())
            .append("operator", getOperator())
            .append("createTime", getCreateTime())
            .toString();
    }
}
